package org.example.service;

import org.example.entity.Admin;

import java.io.File;
import java.io.IOException;
import java.util.Properties;

/**
 * @author TonySong
 * @date 2025/7/28 0028
 * @time 16:47
 */
public interface IAdminService {

    File file = new File("admin.dat");
    Properties PROPERTIES = new Properties();

    Admin init() throws IOException, ClassNotFoundException;
    Admin login(String username, String password) throws IOException, ClassNotFoundException;

    void saveAdmin(Admin admin) throws IOException;

    Admin load() throws IOException, ClassNotFoundException;
}
